package jm.java.GC;

import java.util.ArrayList;

/**
 * @Description 展示垃圾回收过程
 * @date 2022/3/24 16:13
 */
public class ShowGCProcess {
    private static final int _512KB = 512 * 1024;
    private static final int _1MB = 1024 * 1024;
    private static final int _6MB = 6 * 1024 * 1024;
    private static final int _7MB = 7 * 1024 * 1024;
    private static final int _8MB = 8 * 1024 * 1024;


    public static void main(String[] args) {
        new Thread(()->{
            ArrayList<byte[]> list = new ArrayList<>();
            list.add(new byte[_8MB]);
            list.add(new byte[_8MB]);
        }).start();
    }

}
